#include "progress.h"

const char style[S_NUM] = {'-', '>', '=', '#','*'};
void Progress()
{
    int i = 0;
    char len[NUM];
    const char* tmp = "|\\-/";
    memset(len,'\0',sizeof(len));
    while(i < NUM)
    {
        printf("[%-100s][%d%%][%c]\r",len,i,tmp[i%4]);
        fflush(stdout);
        len[i++] = style[N];
        sleep(1);
    }
    printf("\n");
}
